﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Media;

namespace InteractiveMapApp
{
    /// <summary>
    /// Class for playing sounds
    /// </summary>
    class Sounds
    {
        private static SoundPlayer click0 = new SoundPlayer(Properties.Resources.click_sound0);
        private static SoundPlayer click1 = new SoundPlayer(Properties.Resources.click_sound1);

        /// <summary>
        /// Send the name in string parameter of which sound to play, that sound should be in resources folder..
        /// remember to include extension, eg: click_sound0.wav
        /// </summary>
        /// <param name="soundName">string of which sound to play</param>
        public static void playSound(string soundName)
        {
            switch (soundName)
            {
                case "click_sound0.wav":
                    click0.Play();
                    break;

                case "click_sound1.wav":
                    click1.Play();
                    break;

                default:
                    break;
            }
        }

        //stop any sounds which may or may not currently be playing
        public void stopAllSounds()
        {

        }

    }
}
